package com.dwxt.cdms.dao;

import com.dwxt.cdms.entity.EcgData;
import com.dwxt.cdms.entity.EcgDataExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EcgDataMapper {
    int countByExample(EcgDataExample example);

    int deleteByExample(EcgDataExample example);

    int deleteByPrimaryKey(Long id);

    int insert(EcgData record);

    int insertSelective(EcgData record);

    List<EcgData> selectByExample(EcgDataExample example);

    EcgData selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") EcgData record, @Param("example") EcgDataExample example);

    int updateByExample(@Param("record") EcgData record, @Param("example") EcgDataExample example);

    int updateByPrimaryKeySelective(EcgData record);

    int updateByPrimaryKey(EcgData record);

    List<EcgData> selectPageGroup(String name, Integer stationId);

    List<EcgData> selectPageByCustomerId(Integer customerId);

    EcgData selectById(Integer id);

    EcgData selectLastByCustomerId(Integer customerId);
}